<h1>Listing tags</h1>
<p>Click <a href="http://localhost:3000/movies">here</a> for movies.</p>
<table>
    <tr>
        <th>Name</th>
    </tr>

    <% for tag in @tags %>
        <tr>
            <td><%= h tag.name %></td>
            <td><%= link_to 'Edit', edit_tag_path(tag) %></td>
            <td><%= link_to 'Remove', tag, :confirm => 'Are you sure?', :method => :delete %></td>
        </tr>
    <% end %>
</table>

<br/>

<%= link_to 'New tag', new_tag_path %>
